/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.entity;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author tomeu
 */
public class Payment implements Serializable {
    private int bookingid;
    private Date paymentDate;
    private double totalPrice;
    private Date recordDate;

    public Payment() {
    }

    public Payment(int bookingid, Date paymentDate, double totalPrice, Date recordDate) {
        this.bookingid = bookingid;
        this.paymentDate = paymentDate;
        this.totalPrice = totalPrice;
        this.recordDate = recordDate;
    }

    public Date getPaymentDate() {
        return paymentDate;
    }

    public Date getRecordDate() {
        return recordDate;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setPaymentDate(Date paymentDate) {
        this.paymentDate = paymentDate;
    }

    public void setRecordDate(Date recordDate) {
        this.recordDate = recordDate;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "Payment{" + "paymentDate=" + paymentDate + ", totalPrice=" + totalPrice + ", recordDate=" + recordDate + '}';
    }
}
